projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c398e75
)
imx: mx27 implement get_cpu_rev
author
Peng Fan
<
[email protected]
>
Thu, 13 Aug 2015 02:55:31 +0000
(10:55 +0800)
committer
Stefano Babic
<
[email protected]
>
Wed, 2 Sep 2015 13:29:14 +0000
(15:29 +0200)
Implement get_cpu_rev to support runtime check using is_cpu_type.
Signed-off-by: Peng Fan <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
Reviewed-by: Stefano Babic <
[email protected]
>
arch/arm/cpu/arm926ejs/mx27/generic.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/mx27/generic.c
b/arch/arm/cpu/arm926ejs/mx27/generic.c
index 5ee9f07d8735b2d10dd3bb25322aa0984edc386c..b713c8451944515ba301ef33e1f1f5e0734de0de 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/mx27/generic.c
+++ b/
arch/arm/cpu/arm926ejs/mx27/generic.c
@@
-12,6
+12,7
@@
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
+#include <asm/imx-common/sys_proto.h>
#ifdef CONFIG_MXC_MMC
#include <asm/arch/mxcmmc.h>
#endif
@@
-159,6
+160,11
@@
unsigned int mxc_get_clock(enum mxc_clock clk)
}
+u32 get_cpu_rev(void)
+{
+ return MXC_CPU_MX27 << 12;
+}
+
#if defined(CONFIG_DISPLAY_CPUINFO)
int print_cpuinfo (void)
{